# encoding: utf-8
""" 
@version: v1.0 
@author: autumner 
@license: Apache Licence  
@contact: 18322313385@163.com 
@site:  https://gitee.com/autumner/pythoncookbook
@software: PyCharm 
@file: shell_terminal_size.py 
@time: 2019/8/1 上午9:52
@note:
获取终端列数和行数
"""
import os

sz = os.get_terminal_size()
print(sz)
print(f"columns: {sz.columns}")
print(f"lines: {sz.lines}")

'在终端里运行此命令 '
